<?php defined('_JEXEC') or die('Restricted access'); ?>

<script type="text/javascript">
/*script to make each tab click set the startOffset hidden value in the form,
so the apply button will come back to the same tab*/
window.addEvent('domready', function()
{
	var tabsArray = $$('dl.tabs dt');

	tabsArray.each(function(el,index)
	{
		el.addEvent('click', function(e)
		{
			$('startOffset').setProperty('value', index);
		});
	});

});
</script>

<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">

<?php
//get the wysiwyg, the front end just has textareas
$editor =& JFactory::getEditor();
$startOffset = JRequest::getInt('startOffset', 0);

//get the tabs object
jimport('joomla.html.pane');
$pane =& JPane::getInstance('Tabs', array('startOffset' => $startOffset) );

//start all of the tabs
echo $pane->startPane('myPane');

//start the 'general'tab
echo $pane->startPanel(JText::_( 'GENERAL' ), 'general');

?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'GENERAL' ); ?></legend>
<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'NAME' ); ?>:
	</td>
	<td>
		<input type="text" name="name" id="name" value="<?php echo $this->profile->name; ?>" class="text_area" size="48" maxlength="250" />
	</td>
</tr>


<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'PUBLISHED' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['published']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'IMAGE QUALITY' ).' (0-100)';?>:
	</td>
	<td>
		<input  type="text" name="img_quality" id="img_quality"
		class="text_area" size="24" maxlength="12" value="<?php echo $this->profile->img_quality; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW SEARCH' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_search']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW CATEGORY TITLE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_cat_title']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'STYLE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['style']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'REFRESH MODE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['refresh_mode']; ?>
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'CORNERS' ); ?></legend>
<table class="admintable">
<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'ROUND LARGE IMAGE CORNERS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['round_large']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'ROUND THUMB CORNERS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['round_thumb']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'ROUND MENU IMAGE CORNERS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['round_menu']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'CORNER FILL COLOR JPEG' ); ?>:
	</td>
	<td>
		<input  type="text" name="round_fill" id="round_fill"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->round_fill; ?>" />
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'WATERMARK' ); ?></legend>

<table class="admintable">
<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['watermark']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['watermark_position']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK TRANSPARENCY' ); ?>:
	</td>
	<td>
		<input  type="text" name="watermark_transparency" id="watermark_transparency"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->watermark_transparency; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK TEXT' ); ?>:
	</td>
	<td>
		<input  type="text" name="watermark_text" id="watermark_text"
		class="text_area" size="30" maxlength="100" value="<?php echo $this->profile->watermark_text; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK TEXT COLOR' ); ?>:
	</td>
	<td>
		<input  type="text" name="watermark_text_color" id="watermark_text_color"
		class="text_area" size="20" maxlength="20" value="<?php echo $this->profile->watermark_text_color; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'FONT SIZE' ); ?>:
	</td>
	<td>
		<input  type="text" name="watermark_text_size" id="watermark_text_size"
		class="text_area" size="20" maxlength="20" value="<?php echo $this->profile->watermark_text_size; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'WATERMARK IMAGE' ); ?>:
	</td>
	<td>
		<input type="file" name="watermark_filename" /><br /><br />
		<?php if( strlen($this->profile->watermark_filename) > 1 ): ?>
		  <img src="<?php echo IG_IMAGE_HTML_WATERMARK; ?><?php echo $this->profile->watermark_filename; ?>" alt=""/>
		<?php endif; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'REMOVE WATERMARK IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['remove_wm_image']; ?>
	</td>
</tr>

</table>
</fieldset>

<?php
//end the 'general' tab
echo $pane->endPanel();

//start the category tab
echo $pane->startPanel(JText::_( 'MENU' ), 'category');
?>

<table class="admintable">
<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'MENU IMAGE MAXIMUM IMAGE WIDTH' ); ?>:
	</td>
	<td>
		<input type="text" name="menu_max_width" id="menu_max_width"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->menu_max_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'MENU IMAGE MAXIMUM IMAGE HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="menu_max_height" id="menu_max_height"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->menu_max_height; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'CROP TO SAME SIZE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['crop_menu']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'MENU IMAGE DEFAULTS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['menu_image_defaults']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'COLUMNS' ); ?>:
	</td>
	<td>
		<input  type="text" name="columns" id="columns" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->columns; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'PAGINATION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['menu_pagination']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'IMAGES PER PAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['menu_pagination_amount']; ?>
	</td>
</tr>

</table>
<?php
//end the category tab
echo $pane->endPanel();

//start the main image tab
echo $pane->startPanel(JText::_( 'MAIN IMAGE' ), 'main_image');?>

<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW LARGE IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_large_image']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'MAXIMUM IMAGE WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="max_width" id="max_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->max_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'MAXIMUM IMAGE HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="max_height" id="max_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->max_height; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'CROP TO SAME SIZE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['crop_main']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'IMG CONTAINER WIDTH ZERO EQUALS AUTO' ); ?>:
	</td>
	<td>
		<input type="text" name="img_container_width" id="img_container_width"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->img_container_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'IMG CONTAINER HEIGHT ZERO EQUALS AUTO' ); ?>:
	</td>
	<td>
		<input  type="text" name="img_container_height" id="img_container_height"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->img_container_height; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'FADE DURATION' ); ?>:
	</td>
	<td>
		<input  type="text" name="fade_duration" id="fade_duration"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->fade_duration; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'PRELOAD LARGE IMAGES' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['preload']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW ENLARGE GIF' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['magnify']; ?>
	</td>
</tr>

</table>

<?php
//end the main image tab
echo $pane->endPanel();

//start the thumbnails tab
echo $pane->startPanel(JText::_( 'MAIN THUMBNAILS' ), 'thumbnails');?>
<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW THUMBNAILS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_thumbs']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'THUMBNAIL MAXIMUM WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="thumb_width" id="thumb_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->thumb_width;?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'THUMBNAIL MAXIMUM HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="thumb_height" id="thumb_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->thumb_height; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'CROP THUMBNAILS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['crop_thumbs']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'THUMBNAIL POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['thumb_position']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'THUMBNAIL CONTAINER WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="thumb_container_width" id="thumb_container_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->thumb_container_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'THUMBNAIL CONTAINER HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="thumb_container_height" id="thumb_container_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->thumb_container_height; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'IMAGES PER ROW' )?>:
	</td>
	<td>
		<input  type="text" name="images_per_row" id="images_per_row"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->images_per_row; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW THUMBNAIL SCROLLBAR' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['thumb_scrollbar']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW UP DOWN ARROWS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['arrows_up_down']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW LEFT RIGHT ARROWS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['arrows_left_right']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'MOUSEOVER SCROLLER SPEED' )?>:
	</td>
	<td>
		<input  type="text" name="scroll_speed" id="scroll_speed"
		class="text_area" size="24" maxlength="12" value="<?php echo $this->profile->scroll_speed; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'MOUSEOVER SCROLLER BOUNDARY' )?>:
	</td>
	<td>
		<input  type="text" name="scroll_boundary" id="scroll_boundary"
		class="text_area" size="24" maxlength="12" value="<?php echo $this->profile->scroll_boundary; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'PAGINATION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['thumb_pagination']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'IMAGES PER PAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['thumb_pagination_amount']; ?>
	</td>
</tr>

</table>
<?php
//end the thumbs tab
echo $pane->endPanel();

//start the other tab
echo $pane->startPanel(JText::_( 'MAIN OTHER' ), 'other');?>

<fieldset class="adminform">
<legend><?php echo JText::_( 'OTHER' ); ?></legend>

<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'CATEGORY DESCRIPTION POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['gallery_des_position']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'ALLOW COMMENTS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['allow_comments']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'ALLOW RATING' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['allow_rating']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'GALLERY ALIGNMENT' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['align']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'DOWNLOAD IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['download_image']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW TAGS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_tags']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW REPORT IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['report_image']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW SHARE FACEBOOK' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['share_facebook']; ?>
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'SLIDESHOW' ); ?></legend>

<table class="admintable">

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SHOW SLIDESHOW CONTROLS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_slideshow_controls']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'SLIDESHOW AUTOSTART' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['slideshow_autostart']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SLIDESHOW PERIOD' ); ?>:
	</td>
	<td>
		<input  type="text" name="slideshow_pause" id="slideshow_pause" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->slideshow_pause; ?>" />
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'IMAGE DESCRIPTIONS' ); ?></legend>

<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW DESCRIPTIONS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['show_descriptions']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'IMAGE DESCRIPTION POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['photo_des_position']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'DESCRIPTION BOX WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="photo_des_width" id="photo_des_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->photo_des_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'DESCRIPTION BOX HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="photo_des_height" id="photo_des_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->photo_des_height; ?>" />
	</td>
</tr>

</table>
</fieldset>

<?php echo $pane->endPanel();
echo $pane->startPanel(JText::_( 'LIGHTBOX IMAGE' ), 'lightbox_image');?>

<table class="admintable">

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX EFFECT' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lightbox']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'MAXIMUM IMAGE WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_max_width" id="max_lightbox_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_max_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'MAXIMUM IMAGE HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_max_height" id="max_lightbox_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_max_height; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'CROP TO SAME SIZE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['crop_lbox']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'IMG CONTAINER WIDTH ZERO EQUALS AUTO' ); ?>:
	</td>
	<td>
		<input type="text" name="lbox_img_container_width" id="lbox_img_container_width"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->lbox_img_container_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'IMG CONTAINER HEIGHT ZERO EQUALS AUTO' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_img_container_height" id="lbox_img_container_height"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->lbox_img_container_height; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'FADE DURATION' ); ?>:
	</td>
	<td>
	<input  type="text" name="lbox_fade_duration" id="lbox_fade_duration"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->lbox_fade_duration; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'PRELOAD LARGE IMAGES' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_preload']; ?>
	</td>
</tr>

</table>

<?php echo $pane->endPanel();
echo $pane->startPanel(JText::_( 'LIGHTBOX THUMBNAILS' ), 'lbox_thumbs');?>

<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW THUMBNAILS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_show_thumbs']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'THUMBNAIL MAXIMUM WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_thumb_width" id="lbox_thumb_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_thumb_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'THUMBNAIL MAXIMUM HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_thumb_height" id="lbox_thumb_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_thumb_height; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'CROP THUMBNAILS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_crop_thumbs']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'THUMBNAIL POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_thumb_position']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'THUMBNAIL CONTAINER WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_thumb_container_width" id="lbox_thumb_container_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_thumb_container_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'THUMBNAIL CONTAINER HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_thumb_container_height" id="lbox_thumb_container_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_thumb_container_height; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'IMAGES PER ROW' )?>:
	</td>
	<td>
		<input  type="text" name="lbox_images_per_row" id="lbox_images_per_row"
		class="text_area" size="12" maxlength="12" value="<?php echo $this->profile->lbox_images_per_row; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW THUMBNAIL SCROLLBAR' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_thumb_scrollbar']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW UP DOWN ARROWS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_arrows_up_down']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW LEFT RIGHT ARROWS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_arrows_left_right']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'MOUSEOVER SCROLLER SPEED' )?>:
	</td>
	<td>
		<input  type="text" name="lbox_scroll_speed" id="lbox_scroll_speed"
		class="text_area" size="24" maxlength="12" value="<?php echo $this->profile->lbox_scroll_speed; ?>" />
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'MOUSEOVER SCROLLER BOUNDARY' )?>:
	</td>
	<td>
		<input  type="text" name="lbox_scroll_boundary" id="lbox_scroll_boundary"
		class="text_area" size="24" maxlength="12" value="<?php echo $this->profile->lbox_scroll_boundary; ?>" />
	</td>
</tr>

</table>
<?php echo $pane->endPanel();
echo $pane->startPanel(JText::_( 'LIGHTBOX OTHER' ), 'lbox_other');?>

<fieldset class="adminform">
<legend><?php echo JText::_( 'LIGHTBOX OTHER' ); ?></legend>
<table class="admintable">

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'ALLOW COMMENTS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_allow_comments']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'ALLOW RATING' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_allow_rating']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX CLOSE BUTTON POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_close_position']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'FIT LIGHTBOX TO WINDOW' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_scalable']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'DOWNLOAD IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_download_image']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW TAGS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_show_tags']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW REPORT IMAGE' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_report_image']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'SHOW SHARE FACEBOOK' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_share_facebook']; ?>
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SLIDESHOW' ); ?></legend>

<table class="admintable">

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW SLIDESHOW CONTROLS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_show_slideshow_controls']; ?>
	</td>
</tr>

<tr>
	<td valign="top" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SLIDESHOW AUTOSTART' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_slideshow_autostart']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SLIDESHOW PERIOD' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_slideshow_pause" id="lbox_slideshow_pause" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_slideshow_pause; ?>" />
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'DESCRIPTIONS' ); ?></legend>

<table class="admintable">

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'SHOW DESCRIPTIONS' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_show_descriptions']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'IMAGE DESCRIPTION POSITION' ); ?>:
	</td>
	<td>
		<?php echo $this->lists['lbox_photo_des_position']; ?>
	</td>
</tr>

<tr>
	<td width="100" align="right" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'DESCRIPTION BOX WIDTH' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_photo_des_width" id="lbox_photo_des_width" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_photo_des_width; ?>" />
	</td>
</tr>

<tr>
	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'LIGHTBOX').' '.JText::_( 'DESCRIPTION BOX HEIGHT' ); ?>:
	</td>
	<td>
		<input  type="text" name="lbox_photo_des_height" id="lbox_photo_des_height" class="text_area"
		size="12" maxlength="12" value="<?php echo $this->profile->lbox_photo_des_height; ?>" />
	</td>
</tr>

</table>

</fieldset>
<?php
echo $pane->endPanel();

echo $pane->startPanel(JText::_( 'FRONTEND ACL' ), 'frontend_acl');?>

<fieldset class="adminform">
<legend><?php echo JText::_( 'FRONTEND DISPLAY'); ?></legend>

<table class="admintable" style="width: 470px;">
<tr>
	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'VIEW CATEGORY'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_display']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'VIEW MENU IMAGE'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_menu']; ?>
	</td>
</tr>

</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'FRONTEND CREATION CATEGORY'); ?></legend>

<?php 
$configArray =& JComponentHelper::getParams('com_igallery'); 
if($configArray->get('allow_frontend_creation', 0) == 0)
{
	echo '<br /><b>'.JText::_('PLEASE ENABLE FRONTEND').'</b><br /><br />';
}

?>
<table class="admintable">
<tr>
	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'VIEW CATEGORY'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_view']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'EDIT CATEGORY'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_edit']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'DELETE CATEGORY'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_delete']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'PUBLISH UNPUBLISH CATEGORY'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_publish']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'CHANGE CATEGORY ORDERING'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_cat_order']; ?>
	</td>
</tr>

<tr>
	
	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'UPLOAD PHOTOS'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_upload']; ?>
	</td>
	
	
	<td>&nbsp;</td><td>&nbsp;</td>
	<td>&nbsp;</td><td>&nbsp;</td>
	<td>&nbsp;</td><td>&nbsp;</td>
	<td>&nbsp;</td><td>&nbsp;</td>	
</tr>
</table>
</fieldset>

<fieldset class="adminform">
<legend><?php echo JText::_( 'FRONTEND CREATION IMAGE'); ?></legend>

<table class="admintable">
<tr>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'VIEW PHOTO'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_photo_view']; ?>
	</td>


	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'EDIT PHOTO DETAILS'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_photo_edit']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'DELETE PHOTO'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_photo_del']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'PUBLISH UNPUBLISH PHOTO'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_photo_publish']; ?>
	</td>

	<td width="100" align="right" valign="top" class="key">
		<?php echo JText::_( 'CHANGE PHOTO ORDERING'); ?>:
	</td>
	<td>
		<?php echo $this->lists['acl_photo_ordering']; ?>
	</td>
</tr>

</table>

</fieldset>
<?php
echo $pane->endPanel();

echo $pane->endPane(); ?>


<input type="hidden" name="startOffset" id="startOffset" value="<?php echo $startOffset ?>" />
<input type="hidden" name="option" value="com_igallery" />
<input type="hidden" name="controller" value="igprofile" />
<input type="hidden" name="task" value="" />
<?php if(!empty($this->profile->id)): ?>
<input type="hidden" name="cid[]" value="<?php echo $this->profile->id; ?>" />
<?php endif; ?>
</form>